class A{
    static int q = 0;

    public void test(){

    }
}
class B extends A{

}
class C extends B{

}
public class Test {
    public static void main(String[] args) {
        A a = new A();
        A a1 = new B();
        A a3 = new C();
    }
}
